package com.baoxin.chenxixc4coach.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class UserInfo implements Parcelable {

    /**
     * id : 56a8df2003ce4dedaabac816a8fe55b3
     * userName : 晨习用户
     * loginName : 17333110904
     * schName :
     */

    private String id;
    private String userName;
    private String loginName;
    private String photo;
    private String schName;

    public String getPhoto() {
        return photo;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getSchName() {
        return schName;
    }

    public void setSchName(String schName) {
        this.schName = schName;
    }

    public UserInfo() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.userName);
        dest.writeString(this.loginName);
        dest.writeString(this.photo);
        dest.writeString(this.schName);
    }

    protected UserInfo(Parcel in) {
        this.id = in.readString();
        this.userName = in.readString();
        this.loginName = in.readString();
        this.photo = in.readString();
        this.schName = in.readString();
    }

    public static final Creator<UserInfo> CREATOR = new Creator<UserInfo>() {
        @Override
        public UserInfo createFromParcel(Parcel source) {
            return new UserInfo(source);
        }

        @Override
        public UserInfo[] newArray(int size) {
            return new UserInfo[size];
        }
    };
}
